<?php View::render('admin/layouts/meta');?>
<body>
<nav class="breadcrumb">
    <i class="Hui-iconfont">&#xe67f;</i> 首页
    <span class="c-gray en">&gt;</span> 报表管理
    <span class="c-gray en">&gt;</span> 商品销量
    <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" >
        <i class="Hui-iconfont">&#xe68f;</i>
    </a>
</nav>
<div class="page-container">
    <div class="mt-20">
        <table class="table table-border table-bordered table-hover table-bg table-sort">
            <thead>
            <tr class="text-c">
                <th width="50">商品ID</th>
                <th width="150">商品名称</th>
                <th width="150">图片</th>
                <th width="">销售量</th>
                <th width="">销售额</th>
            </tr>
            </thead>
            <tbody>
            <?php if ($list) {
                foreach ($list as $info) {?>
                    <tr class="text-c">
                        <td><?php echo $info['goods_id']; ?></td>
                        <td><?php echo $info['name']; ?></td>
                        <td><img src="<?php echo $info['image']; ?>" style="width:120px;height:40px"/></td>
                        <td><?php echo $info['sales_num']; ?></td>
                        <td><?php echo $info['sales_price']; ?></td>
                    </tr>
                <?php }}?>
            </tbody>
        </table>
        <div>
            <?php echo $pageHtml; ?>
        </div>
    </div>
</div>
</body>
<?php View::render('admin/layouts/footer');?>
<script src="<?php echo Router::getBaseUrl(); ?>/lib/laydate/laydate.js"></script>

<script type="text/javascript">
    $(function(){
        laydate.render({
            elem: '#j_time'
            ,type: 'datetime'
            ,theme: '#ffd200'
            ,range: true
        });
        window.formAlert = function(title, url, w, h) {
            layer.open({
                type: 2,
                title: title,
                area: [w, h],
                content: url,
                end: function(){
                    window.location.href=location.href;
                }
            });
        }
    });
</script>
</html>
